package com.boc.langxiang.entity.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Li Guoxi on 2016/6/24.
 */
public class PhotoBean implements Parcelable{
    private String id;
    private String url;
    private String photo;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.url);
        dest.writeString(this.photo);
    }

    public PhotoBean() {
    }

    protected PhotoBean(Parcel in) {
        this.id = in.readString();
        this.url = in.readString();
        this.photo = in.readString();
    }

    public static final Creator<PhotoBean> CREATOR = new Creator<PhotoBean>() {
        @Override
        public PhotoBean createFromParcel(Parcel source) {
            return new PhotoBean(source);
        }

        @Override
        public PhotoBean[] newArray(int size) {
            return new PhotoBean[size];
        }
    };

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
}
